//
//  ViewController.m
//  FKUIBezierPathTestDemo
//
//  Created by 云眼科技 on 16/8/1.
//  Copyright © 2016年 CloudEyes. All rights reserved.
//

#import "ViewController.h"
#import "FKBezierPathView.h"

@interface ViewController (){
    FKBezierPathView *pathView;
}

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    pathView = [[FKBezierPathView alloc] initWithFrame:CGRectMake(100, 100, 100, 100)];
    [self.view addSubview:pathView];
    
    //添加一个按钮用于跳转视图
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeSystem];
    btn.frame = CGRectMake(50, 200, 275, 50);
    [btn setTitle:@"测试" forState:UIControlStateNormal];
    [btn addTarget: self action:@selector(foo) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:btn];
    
    
}

-(void)foo{
    pathView.progress += 0.1;
}

@end
